import request from '@/utils/request'

// 获取属性列表
export const getAttrInfoListApi = (category1Id, category2Id, category3Id) => {
  return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
}

// 添加属性
export const saveAttrInfoApi = (data) => {
  return request.post(`/admin/product/saveAttrInfo`, data)
}
// 删除属性
export const deleteAttrApi = (attrId) => {
  return request.delete(`/admin/product/deleteAttr/${attrId}`)
}
